﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EnvCommonUtility
{
    /// <summary>
    /// 局部公共静态方法与常量
    /// </summary>
    public static class EnvUtilities
    {
        #region 常量

        #region INI
        /// <summary>
        /// ini 文件[MonitorScreen]
        /// </summary>
        public const string INI_SECTIONNAME_MONITORSCREEN = "MonitorScreen";

        /// <summary>
        /// ini 文件[MonitorScreen] Interval
        /// </summary>
        public const string INI_KEYNAME_MONITORSCREEN_INTERVAL = "Interval";

        /// <summary>
        /// ini 文件[MonitorScreen] TabCount
        /// </summary>
        public const string INI_KEYNAME_MONITORSCREEN_TABCOUNT = "TabCount";


        /// <summary>
        /// ini 文件[Heartbeat]
        /// </summary>
        public const string INI_SECTIONNAME_HEARTBEAT = "Heartbeat";

        /// <summary>
        /// ini 文件[Heartbeat] Interval
        /// </summary>
        public const string INI_KEYNAME_HEARTBEAT_INTERVAL = "Interval";
        #endregion

        #region Timer & TabCount
        /// <summary>
        /// 监控画面个数【默认值】
        /// </summary>
        public const ushort TABCOUNT_MONITORSCREEN_DEFAULT = 5;

        /// <summary>
        /// 监控画面个数【最大值】
        /// </summary>
        public const ushort TABCOUNT_MONITORSCREEN_MAX = 10;

        /// <summary>
        /// 监控画面个数【最小值】
        /// </summary>
        public const ushort TABCOUNT_MONITORSCREEN_MIN = 1;


        /// <summary>
        /// 监控画面更新秒数【默认值】
        /// </summary>
        public const ushort TIMER_MONITORSCREEN_DEFAULT = 5;

        /// <summary>
        /// 监控画面更新秒数【最大值】
        /// </summary>
        public const ushort TIMER_MONITORSCREEN_MAX = 30;

        /// <summary>
        /// 监控画面更新秒数【最小值】
        /// </summary>
        public const ushort TIMER_MONITORSCREEN_MIN = 1;


        /// <summary>
        /// 心跳间隔秒数【默认值】
        /// </summary>
        public const ushort TIMER_HEARTBEAT_DEFAULT = 30;

        /// <summary>
        /// 心跳间隔秒数【最大值】
        /// </summary>
        public const ushort TIMER_HEARTBEAT_MAX = 60;

        /// <summary>
        /// 心跳间隔秒数【最小值】
        /// </summary>
        public const ushort TIMER_HEARTBEAT_MIN = 1;
        #endregion

        #endregion

        #region 属性

        /// <summary>
        /// 监控画面打开的最大个数
        /// </summary>
        public static ushort TabCountMonitorScreen { get; set; }

        /// <summary>
        /// 监控画面更新秒数
        /// </summary>
        public static ushort TimerMonitorScreen { get; set; }

        /// <summary>
        /// 心跳间隔秒数
        /// </summary>
        public static ushort TimerHeartbeat { get; set; }

        #endregion
    }
}
